#ifndef __SCENEINBED_H__
#define __SCENEINBED_H__

#pragma once

class COgreEngine;

class CSceneInBed : public CSceneBase, public RenderTargetListener
{
//Methods
public:
	CSceneInBed(COgreEngine &Creator, const String & Name, const int pos);
	virtual ~CSceneInBed(void);

	void Create(TCreatorEntities const &CreatorEntities, TCreatorNodes const &CreatorNodes, TCreatorLights const &CreatorLights, ENetConfig IsClient = e_NCNone, Vector3 &CameraStartPos = Vector3(200.0f, 150.0f, 200.0f));

	bool frameStarted(const FrameEvent& evt);

	// render target events
    void preRenderTargetUpdate(const RenderTargetEvent& evt);
    void postRenderTargetUpdate(const RenderTargetEvent& evt);

	void Attach(void);
	void Detach(void);

//Variables
public:
	ParticleSystem * m_pPluie;
	ParticleSystem * m_pPluieTop;
	Camera * m_ReflectCam;
	Entity * m_PlaneEnt;
	RenderTexture* m_rttTex;
};

#endif //__SCENEINBED_H__
